﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 群聊成员
    ///</summary>
    [SugarTable("lar_group_member")]
    public class LarGroupMember
    {
        /// <summary>
        /// 自增ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 群组ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="group_id"    )]
         public int GroupId { get; set; }
        /// <summary>
        /// 用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public int UserId { get; set; }
        /// <summary>
        /// 成员属性[0:普通成员;1:管理员;2:群主;] 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="leader"    )]
         public int Leader { get; set; }
        /// <summary>
        /// 是否退群[0:否;1:是;] 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "is_quit")]
        public byte? IsQuit { get; set; } = 0;
        /// <summary>
        /// 群名片 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="user_card")]
         public string UserCard { get; set; }
        /// <summary>
        /// 入群时间 
        ///</summary>
        [SugarColumn(ColumnName = "created_at")]
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否禁言[0:否;1:是;] 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "is_mute")]
        public byte IsMute { get; set; } = 0;
        /// <summary>
        /// 退群时间 
        ///</summary>
         [SugarColumn(ColumnName="deleted_at"    )]
         public DateTime? DeletedAt { get; set; }
    }
}
